package com.ruoyi.logCen.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 日志要入的表
* @TableName log_table
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogTable implements Serializable {

    /**
    * 
    */
    @Size(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;
    /**
    * 应为doris中的表(shema.table_name)
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("应为doris中的表(shema.table_name)")
    @Length(max= 255,message="编码长度不能超过255")
    private String tableName;

    public LogTable(@Size(max= 100,message="编码长度不能超过100") @Length(max= 100,message="编码长度不能超过100") int id) {
        this.id = id;
    }
}
